import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_mine_work_space/xin_he_my_studio_entity.dart';

XinHeMyStudioEntity $XinHeMyStudioEntityFromJson(Map<String, dynamic> json) {
	final XinHeMyStudioEntity xinHeMyStudioEntity = XinHeMyStudioEntity();
	final String? address = jsonConvert.convert<String>(json['address']);
	if (address != null) {
		xinHeMyStudioEntity.address = address;
	}
	final String? codeName = jsonConvert.convert<String>(json['codeName']);
	if (codeName != null) {
		xinHeMyStudioEntity.codeName = codeName;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		xinHeMyStudioEntity.createTime = createTime;
	}
	final int? fCreateUserId = jsonConvert.convert<int>(json['fCreateUserId']);
	if (fCreateUserId != null) {
		xinHeMyStudioEntity.fCreateUserId = fCreateUserId;
	}
	final int? fUpdateUserId = jsonConvert.convert<int>(json['fUpdateUserId']);
	if (fUpdateUserId != null) {
		xinHeMyStudioEntity.fUpdateUserId = fUpdateUserId;
	}
	final int? fUserId = jsonConvert.convert<int>(json['fUserId']);
	if (fUserId != null) {
		xinHeMyStudioEntity.fUserId = fUserId;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeMyStudioEntity.id = id;
	}
	final String? latitude = jsonConvert.convert<String>(json['latitude']);
	if (latitude != null) {
		xinHeMyStudioEntity.latitude = latitude;
	}
	final String? longitude = jsonConvert.convert<String>(json['longitude']);
	if (longitude != null) {
		xinHeMyStudioEntity.longitude = longitude;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeMyStudioEntity.name = name;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		xinHeMyStudioEntity.remark = remark;
	}
	final int? removed = jsonConvert.convert<int>(json['removed']);
	if (removed != null) {
		xinHeMyStudioEntity.removed = removed;
	}
	final int? seq = jsonConvert.convert<int>(json['seq']);
	if (seq != null) {
		xinHeMyStudioEntity.seq = seq;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		xinHeMyStudioEntity.updateTime = updateTime;
	}
	final int? versionNum = jsonConvert.convert<int>(json['version_num']);
	if (versionNum != null) {
		xinHeMyStudioEntity.versionNum = versionNum;
	}
	return xinHeMyStudioEntity;
}

Map<String, dynamic> $XinHeMyStudioEntityToJson(XinHeMyStudioEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['address'] = entity.address;
	data['codeName'] = entity.codeName;
	data['createTime'] = entity.createTime;
	data['fCreateUserId'] = entity.fCreateUserId;
	data['fUpdateUserId'] = entity.fUpdateUserId;
	data['fUserId'] = entity.fUserId;
	data['id'] = entity.id;
	data['latitude'] = entity.latitude;
	data['longitude'] = entity.longitude;
	data['name'] = entity.name;
	data['remark'] = entity.remark;
	data['removed'] = entity.removed;
	data['seq'] = entity.seq;
	data['updateTime'] = entity.updateTime;
	data['version_num'] = entity.versionNum;
	return data;
}